package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.mapper.entity.YxBankerProductSpec;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;

public interface BankerProductSpecMapper extends Mapper<YxBankerProductSpec> {

    void updateStockById(@Param("id") Integer id,@Param("stock") Integer stock,@Param("costPrice") BigDecimal costPrice,@Param("proImg") String proImg);

    void updateStatusById(Integer id);

    /**
     * 更新供应商商品规格库存
     */
    void updateBankerProductSpecStockById(Integer id, Integer num, String type);
}
